﻿using System;
using System.Web;
using System.Web.UI;
using Microsoft.SharePoint;
using NntpClientLib;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint.WebControls;

namespace NewsgroupListSync
{
    public partial class Thankyou : LayoutsPageBase
    {
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);

            if (SPContext.Current != null)
            {
                MasterPageFile = SPContext.Current.Web.MasterUrl;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string NewsGroup = "";

            if (!string.IsNullOrEmpty(Request.QueryString["NewsGroup"]))
                NewsGroup = Request.QueryString["NewsGroup"];
            NewsList.Text = "<a href=\"/news/Lists/" + NewsGroup.Replace(".", "") + "\">Return to " + NewsGroup + "</a>";
        }
    }
}
